From: Carlos Soriano Date: Thu, 14 Aug 2014 13:36:19 +0000 (+0200) Subject: appDisplay: sync page when changing adjustment X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2253 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d1a3a000afeabecb17a8a75c3ee8eca57ff36ff5;p=gnome-shell.git appDisplay: sync page when changing adjustment We were setting the value of adjustment on size changes, but we weren't changing the page value, so adjustment and page value was not in sync. To fix it, make sure adjustment of the view is in sync with the page value. https://bugzilla.gnome.org/show_bug.cgi?id=734680 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index c32acb6ad..0bf435e25 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -630,6 +630,7 @@ const AllView = new Lang.Class({ if (this._availWidth != availWidth || this._availHeight != availHeight || oldNPages != this._grid.nPages()) { this._adjustment.value = 0; + this._currentPage = 0; Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() { this._pageIndicators.setNPages(this._grid.nPages());